﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GameFramework.Event;
using GameFramework;
using System;

namespace TowerDefence_Zombie
{
    public class TowerUpgradeStarEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(TowerUpgradeStarEventArgs).GetHashCode();

        public int TowerId
        {
            get;
            private set;
        }

        public int TowerStar
        {
            get;
            private set;
        }

        public TowerUpgradeStarEventArgs()
        {
            TowerId = 0;
            TowerStar = 0;
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }

        public static TowerUpgradeStarEventArgs Create(int towerId, int star)
        {
            TowerUpgradeStarEventArgs towerUpgradeStarEvent = ReferencePool.Acquire<TowerUpgradeStarEventArgs>();
            towerUpgradeStarEvent.TowerId = towerId;
            towerUpgradeStarEvent.TowerStar = star;
            return towerUpgradeStarEvent;
        }

        public override void Clear()
        {
            TowerId = 0;
            TowerStar = 0;
        }
    }
}